<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../../static/css/main.css">
    <link rel="stylesheet" type="text/css" href="../../static/css/admin.css">
    <script type="text/javascript" src="../../static/js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="../../static/js/user.js"></script>
    <title>hy的web</title>
</head>
<body>
<header>
    <!--头部-->
    <div class="box">
        <img src="../../static/img/logo.png" class="logo">
        <!--导航栏-->
        <div class="right bar">
            <!--选项-->
            <a href="{{ url_for('admin_blu.admin') }}" class="admin_b"><img src="../../static/img/admin.png"></a>
            <a href="{{ url_for('index_blu.index') }}" class="home_b"><img src="../../static/img/home.png"></a>
            <a href="{{ url_for('user_blu.user_write_new') }}"><img src="../../static/img/write.png"></a>
            <a href="{{ url_for('user_blu.user') }}" class="ava_b"><img src="{{user.avatar_url}}"></a>
            {%if user%}
            <a href="/passport/logout"><img src="../../static/img/logout.png"></a>
            {%endif%}
        </div>
    </div>
</header>
<div class="box centre">
    <div class="left user_classify">
        <ul>
            <li class="choose"><a href="/admin">文章审核</a></li>
            <hr>
            <li><a href="/admin/classify">分类添加</a></li>
            <hr>
            <li><a href="/admin/user">用户列表</a></li>
        </ul>
    </div>
    <div class="right user_detail">
        <div style="display: block">
            <h3>全部文章</h3>
            <hr>
            <br><br>
            <table>
                <tr>
                    <td>文章编号</td>
                    <td>文章分类</td>
                    <td class="art_title">文章标题</td>
                    <td>用户昵称</td>
                    <td>文章状态</td>
                    <td><a>管理</a></td>
                </tr>
                {% for i in article %}
                <tr>
                    <td>{{i.id}}</td>
                    <td>{{i.classify|classify_show}}</td>
                    <td class="art_title">{{i.title}}</td>
                    <td>{{i.user.nick_name}}</td>
                    <td>{{i.status|status_show}}</td>
                    <td><a>审核</a>&nbsp;<a onclick="delete_article(this)" value={{i.id}}>删除</a></td>
                </tr>
                {% endfor %}
            </table>
        </div>
    </div>
</div>
</body>
</html>